package com.lamda.zhekou.master.event;


import com.alibaba.fastjson.JSONObject;

import java.util.EventObject;

/**
 * Data event of broadcast message.
 */
public class DataEvent extends EventObject {

    private JSONObject message;

    public JSONObject getMessage() {
        return message;
    }

    public void setMessage(JSONObject message) {
        this.message = message;
    }

    public DataEvent(Object source, JSONObject message) {
        super(source);
        this.message = message;
    }

    @Override
    public String toString() {
        return "DataEvent{" +
                "source=" + source +
                "message=" + message +
                '}';
    }
}